﻿<%@ Page Language="C#"  MasterPageFile="~/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="QL_GopY.aspx.cs" Inherits="QL_GopY" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style5
        {
            height: 21px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellpadding="2" class="style4" style="width: 100%">
    <tr>
        <td align="center" 
            style="height: 28px; background-color: #4F95FF; color: #FFFFFF; font-size: 16px; width: 800px;">
            QUẢN LÝ GÓP Ý CỦA KHÁCH HÀNG</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblgopy" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <asp:DataList ID="DataList1" runat="server" DataKeyField="IDGOPY" Width="100%">
                <ItemTemplate>
                    <table cellpadding="2" class="style4" 
                        style="border: 1px solid #C0C0C0; width: 100%;">
                        <tr>
                            <td colspan="2" 
                                style="background-color: #EBF2B7; color: #3333FF; padding-left: 7px;">
                                <asp:Label ID="Label4" runat="server" Font-Bold="True" ForeColor="#666666" 
                                    Text="Tiêu đề :"></asp:Label>
                                &nbsp;
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Tieude") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="padding-left: 7px; padding-right: 7px; width: 620px;">
                                <asp:Literal ID="Literal1" runat="server" Text='<%# Eval("Noidung") %>'></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" colspan="2" class="style5" style="padding-right: 7px">
                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("hovaten") %>' 
                                    Font-Bold="True" ForeColor="#33CC33"></asp:Label>
                                &nbsp;&nbsp;&nbsp;
                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("ngay_gui") %>' 
                                    ForeColor="#919191"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="padding-left: 7px">
                                &nbsp;<asp:Button ID="btntraloi" runat="server" Text="Trả Lời" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                    <br />
                    <br />
                </ItemTemplate>
            </asp:DataList>
            <br />
        </td>
    </tr>
    <tr>
        <td>
            Mã góp ý :<asp:TextBox ID="txtma" runat="server" Width="340px"></asp:TextBox>&nbsp;<asp:Button ID="btnxoa" runat="server" Text="Xóa" onclick="btnxoa_Click" 
                Width="70px" />
                                &nbsp;
            <asp:Label ID="lbl" runat="server" Font-Bold="True" ForeColor="#009900"></asp:Label>
        </td>
    </tr>
    <tr>
        <td style="width: 620px">
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" onpageindexchanging="GridView1_PageIndexChanging" 
                onselectedindexchanged="GridView1_SelectedIndexChanged" PageSize="2" 
                Width="100%">
                <PagerSettings PageButtonCount="7" />
                <Columns>
                    <asp:BoundField DataField="IDGOPY" HeaderText="Mã góp ý">
                        <ItemStyle Width="40px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="HOVATEN" HeaderText="Họ và tên">
                        <ItemStyle Width="150px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="EMAIL" HeaderText="EMAIL">
                        <ItemStyle Width="150px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="TIEUDE" HeaderText="Tiêu đề">
                        <ItemStyle Width="200px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="NOIDUNG" HeaderText="Nội dung">
                        <ItemStyle Width="200px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="NGAY_GUI" HeaderText="Ngày gửi">
                        <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:CommandField SelectText="Chọn" ShowSelectButton="True">
                        <ItemStyle Width="70px" />
                    </asp:CommandField>
                </Columns>
                <PagerStyle HorizontalAlign="Center" />
            </asp:GridView>
        </td>
    </tr>
</table>
</asp:Content>

